package com.wicket.okrcomponent.base.service.dto.common;


import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Objects;

/**
 * @desc OpenConfItemCustomResultDto
 * @使用场景
 */
@Data
public class OpenConfItemCustomResultDto
        extends BaseDto
        implements Serializable {

    /**
     * 结果值:
     */
    @NotNull(message = "结果值不能为空")
    @ApiModelProperty("结果值")
    private String endValue;

    /**
     * 结果类型:
     */
    @ApiModelProperty("结果类型")
    private String resultType;

    /**
     * 选项类型:
     */
    @NotNull(message = "选项类型不能为空")
    @ApiModelProperty("选项类型")
    private String optionType;

    /**
     * 配置选项标识:
     */
    @NotNull(message = "配置选项标识不能为空")
    @ApiModelProperty("配置选项标识")
    private String confOptionCode;

    /**
     * 冗余配置选项名称:
     */
    @NotNull(message = "冗余配置选项名称不能为空")
    @ApiModelProperty("冗余配置选项名称")
    private String confOptionName;

    /**
     * 配置项下选项关系ID:
     */
    @NotNull(message = "配置项下选项关系ID 不能为空")
    @ApiModelProperty("配置项下选项关系ID ")
    private String confOptionRshipId;

    /**
     * 配置项标识:
     */
    @NotNull(message = "配置项标识不能为空")
    @ApiModelProperty("配置项标识")
    private String confItemCode;

    /**
     * 冗余配置项简称:
     */
    @ApiModelProperty("冗余配置项简称")
    private String shortName;

    /**
     * 所属配置项分组标识:
     */
    @NotNull(message = "所属配置项分组标识不能为空")
    @ApiModelProperty("所属配置项分组标识")
    private String confItemClassCode;

    /**
     * 是否平台数据:
     */
    @NotNull(message = "是否平台数据不能为空")
    @ApiModelProperty("是否平台数据")
    private String isPlatData;

    /**
     * 是否定制结果:
     */
    @NotNull(message = "是否定制结果不能为空")
    @ApiModelProperty("是否定制结果")
    private String isCeResult;

    /**
     * 配置结果归属对象类型:
     */
    @ApiModelProperty("配置结果归属对象类型")
    private String resultAspObjType;

    /**
     * 主体生命周期:
     */
    @NotNull(message = "主体生命周期不能为空")
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 配置结果归属对象ID:
     */
    @ApiModelProperty("配置结果归属对象ID")
    private String resultAspObjId;

    /**
     * 配置方案ID:
     */
    @NotNull(message = "配置方案ID 不能为空")
    @ApiModelProperty("配置方案ID ")
    private String confSchemeId;

    /**
     * 配置方案标识:
     */
    @NotNull(message = "配置方案标识不能为空")
    @ApiModelProperty("配置方案标识")
    private String confSchemeCode;
    /**
     * 选项结果ID:
     */
    @NotNull(message = "选项结果ID不能为空")
    @ApiModelProperty("选项结果ID")
    private String optionResultId;
    /**
     * 分组名称:
     */
    @NotNull(message = "分组名称不能为空")
    @ApiModelProperty("分组名称")
    private String confItemClassName;
    /**
     * 配置方案名称:
     */
    @NotNull(message = "配置方案名称不能为空")
    @ApiModelProperty("配置方案名称")
    private String confSchemeName;
    /**
     * 是否初始方案:
     */
    @NotNull(message = "是否初始方案不能为空")
    @ApiModelProperty("是否初始方案")
    private String isInitialScheme;
/**
     * 选项排序 
     */
    @NotNull(message = "选项排序不能为空")
@ApiModelProperty("选项排序")
    private Long	 confOptionSortNum;


    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      OpenConfItemCustomResultDto that = (OpenConfItemCustomResultDto) o;
      return  endValue == that.endValue&&resultType == that.resultType&&optionType == that.optionType&&confOptionCode == that.confOptionCode&&confOptionName == that.confOptionName&&confOptionRshipId == that.confOptionRshipId&&confItemCode == that.confItemCode&&shortName == that.shortName&&confItemClassCode == that.confItemClassCode&&isPlatData == that.isPlatData&&isCeResult == that.isCeResult&&resultAspObjType == that.resultAspObjType&&subjectLifeCycle == that.subjectLifeCycle&&resultAspObjId == that.resultAspObjId&&confSchemeId == that.confSchemeId&&confSchemeCode == that.confSchemeCode&&optionResultId == that.optionResultId&&confItemClassName == that.confItemClassName&&confSchemeName == that.confSchemeName&&isInitialScheme == that.isInitialScheme&&confOptionSortNum == that.confOptionSortNum;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), endValue,resultType,optionType,confOptionCode,confOptionName,confOptionRshipId,confItemCode,shortName,confItemClassCode,isPlatData,isCeResult,resultAspObjType,subjectLifeCycle,resultAspObjId,confSchemeId,confSchemeCode,optionResultId,confItemClassName,confSchemeName,isInitialScheme,confOptionSortNum);
    }

}
